import Vue from "vue"
import Vuex from "vuex"
import moduleCart from '@/store/cart.js'
import moduleUser from '@/store/user.js'

Vue.use(Vuex)

const store =new Vuex.Store({
  modules:{
    'm_cart':moduleCart,
    // 挂载用户的 vuex 模块，访问路径为 m_user
        m_user: moduleUser,
  }
})

export default store